<?php
    class error_controller extends Controller
    {
        public function __construct(){
            parent::__construct();
        }

        public function index(){
            //generate list and links
            $this->load->view('error')->display();
        }

        public function warning(){
            trigger_error("Test Warning Handling", E_USER_WARNING);
        }

        public function notice(){
            trigger_error("Test Notice Handling", E_USER_NOTICE);
        }

        public function except(){
            throw new Exception("Test Exception Handling");
        }

        public function error(){
            trigger_error("Test Warning Handling", E_USER_ERROR);
        }
    }

